<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>陪跑兔特效桌面</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      #scene {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        position: relative;
      }

      .background {
        width: 120%;
        height: 120%;
        left: -10%!important;
        top: -10%!important;
        background-image: url('./static/images/background.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        z-index: -1 !important;
      }

      #scene div {
        z-index: 999;
      }

      #scene div:nth-child(1) {
        top: 40% !important;
        left: 30% !important;
      }
      #scene div:nth-child(1) img {
        width: 80px;
        height: 80px;
      }

      #scene div:nth-child(2) {
        top: 20% !important;
        left: 20% !important;
      }
      #scene div:nth-child(2) img {
        width: 160px;
        height: 160px;
      }

      #scene div:nth-child(3) {
        top: 60% !important;
        left: 10% !important;
      }
      #scene div:nth-child(3) img {
        width: 150px;
        height: 150px;
      }

      #scene div:nth-child(4) {
        top: 70% !important;
        left: 80% !important;
      }
      #scene div:nth-child(4) img {
        width: 160px;
        height: 160px;
      }

      #scene div:nth-child(5) {
        top: 65% !important;
        left: 30% !important;
      }
      #scene div:nth-child(5) img {
        width: 100px;
        height: 100px;
      }

      #scene div:nth-child(6) {
        top: 50% !important;
        left: 80% !important;
      }
      #scene div:nth-child(6) img {
        width: 120px;
        height: 120px;
      }

      #scene div:nth-child(7) {
        top: 50% !important;
        left: 50% !important;
      }
      #scene div:nth-child(7) img {
        width: 200px;
        height: 200px;
        z-index: -1;
      }
    </style>
  </head>
  <body>
    <div id="container" class="container">
      <div id="scene" class="scene">
        <div data-depth="3.80"><img src="./static/images/1.png" /></div>
        <div data-depth="1.60"><img src="./static/images/2.png" /></div>
        <div data-depth="0.40"><img src="./static/images/3.png" /></div>
        <div data-depth="0.20"><img src="./static/images/4.png" /></div>
        <div data-depth="1.20"><img src="./static/images/5.png" /></div>
        <div data-depth="2.00"><img src="./static/images/6.png" /></div>

        <div data-depth="0.05"><img src="./static/images/0.png" /></div>
        <div data-depth="0.12" class="background"></div>
      </div>
    </div>

    <!-- Scripts -->
    <script src="./src/js/parallax.js"></script>
    <script>
      function myAwesomeCallback() {
        // alert('Parallax is ready to go now!')
      }

      // the onReady function is called as soon as Parallax knows what input method to use. This might take up to 1000ms (supportDelay * 2) after initialisation
      var scene = document.getElementById('scene')
      var parallax = new Parallax(scene, {
        onReady: myAwesomeCallback
      })
    </script>
  </body>
</html>
